package com.ruoyi.service.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户车辆信息对象 car_info
 * 
 * @author bigbase
 * @date 2025-05-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆主键 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer uid;

    /** 品牌 */
    @Excel(name = "品牌")
    private Integer brand;

    /** 车型 */
    @Excel(name = "车型")
    private Integer type;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 删除状态(默认0，删除1) */
    private Integer del;

    /** 是否默认(1默认 0非默认) */
    @Excel(name = "是否默认(1默认 0非默认)")
    private Integer isDefault;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setBrand(Integer brand) 
    {
        this.brand = brand;
    }

    public Integer getBrand() 
    {
        return brand;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public void setDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("brand", getBrand())
            .append("type", getType())
            .append("carNum", getCarNum())
            .append("del", getDel())
            .append("default", getDefault())
            .toString();
    }
}
